package ae.pcfc.cldos.online.common.tscdb.domain;

import java.util.Date;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import ae.pcfc.cldos.online.common.domain.BaseEntity;

/**
 * TTscClientCompanyRole entity. @author Asna Khader
 */
@Entity
@Table(name = "T_TSC_CLIENT_COMPANY_ROLE")
public class TTscClientCompanyRole extends BaseEntity implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private TTscClientCompanyRoleId id;
	private String ccrStatus;
	private String ccrCreateduser;
	private Date ccrCreatedtime;
	private String ccrModifieduser;
	private Date ccrModifiedtime;

	// Constructors

	/** default constructor */
	public TTscClientCompanyRole() {
	}

	/** full constructor */
	public TTscClientCompanyRole(TTscClientCompanyRoleId id, String ccrStatus,
			String ccrCreateduser, Date ccrCreatedtime, String ccrModifieduser,
			Date ccrModifiedtime) {
		this.id = id;
		this.ccrStatus = ccrStatus;
		this.ccrCreateduser = ccrCreateduser;
		this.ccrCreatedtime = ccrCreatedtime;
		this.ccrModifieduser = ccrModifieduser;
		this.ccrModifiedtime = ccrModifiedtime;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides( {
			@AttributeOverride(name = "ccClientid", column = @Column(name = "CC_CLIENTID", nullable = false, precision = 22, scale = 0)),
			@AttributeOverride(name = "crId", column = @Column(name = "CR_ID", nullable = false, length = 10)) })
	public TTscClientCompanyRoleId getId() {
		return this.id;
	}

	public void setId(TTscClientCompanyRoleId id) {
		this.id = id;
	}

	@Column(name = "CCR_STATUS", nullable = false, length = 1)
	public String getCcrStatus() {
		return this.ccrStatus;
	}

	public void setCcrStatus(String ccrStatus) {
		this.ccrStatus = ccrStatus;
	}

	@Column(name = "CCR_CREATEDUSER", nullable = false, length = 30)
	public String getCcrCreateduser() {
		return this.ccrCreateduser;
	}

	public void setCcrCreateduser(String ccrCreateduser) {
		this.ccrCreateduser = ccrCreateduser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CCR_CREATEDTIME", nullable = false, length = 7)
	public Date getCcrCreatedtime() {
		return this.ccrCreatedtime;
	}

	public void setCcrCreatedtime(Date ccrCreatedtime) {
		this.ccrCreatedtime = ccrCreatedtime;
	}

	@Column(name = "CCR_MODIFIEDUSER", nullable = false, length = 30)
	public String getCcrModifieduser() {
		return this.ccrModifieduser;
	}

	public void setCcrModifieduser(String ccrModifieduser) {
		this.ccrModifieduser = ccrModifieduser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CCR_MODIFIEDTIME", nullable = false, length = 7)
	public Date getCcrModifiedtime() {
		return this.ccrModifiedtime;
	}

	public void setCcrModifiedtime(Date ccrModifiedtime) {
		this.ccrModifiedtime = ccrModifiedtime;
	}

}